package com.tebiecloud.store.client.service;

import com.tebiecloud.common.model.ResultBody;
import com.tebiecloud.store.client.model.entity.StoreFlow;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

public interface IStoreFlowServiceClient {

    /**
     * 新增流水
     * @param storeId 门店id
     * @param amount 金额
     * @param type 类型
     * @param typeId 类型id
     * @param desp 描述
     * @param year 年：2019
     * @param month 月：6
     * @param day 日：25
     * @return
     */
    @PostMapping("/feign/flow/saveStoreFlow")
    ResultBody<StoreFlow> saveStoreFlow(@RequestParam("storeId") long storeId, @RequestParam("amount") int amount,
                                        @RequestParam("shareAmount") int shareAmount, @RequestParam("fees") int fees,
                                            @RequestParam("type") int type, @RequestParam("typeId") long typeId,
                                            @RequestParam(value = "desp",required = false) String desp,
                                            @RequestParam("year") int year,
                                            @RequestParam("month") int month,@RequestParam("day") int day);


}
